package testes.vSys.bean;

import testes.vSys.Constants;

public class Vehicle {
 
	private String plate;
	private int year;
	private int id;
	private double value;
	private Color color;
	private Model model;
	private Fuel fuel;
	private Location location;
	 
	public Vehicle() {
		this.id = Constants.VSYS_UNKNOWN_ID;
	}	

	public Vehicle(int id) {
		this.id = id;
	}


	public Color getColor() {
		return color;
	}


	public void setColor(Color color) {
		this.color = color;
	}


	public Fuel getFuel() {
		return fuel;
	}


	public void setFuel(Fuel fuel) {
		this.fuel = fuel;
	}


	public int getId() {
		return id;
	}


	/*public void setId(int id) {
		this.id = id;
	}*/


	public Location getLocation() {
		return location;
	}


	public void setLocation(Location location) {
		this.location = location;
	}


	public Model getModel() {
		return model;
	}


	public void setModel(Model model) {
		this.model = model;
	}


	public String getPlate() {
		return plate;
	}


	public void setPlate(String plate) {
		this.plate = plate;
	}


	public double getValue() {
		return value;
	}


	public void setValue(double value) {
		this.value = value;
	}


	public int getYear() {
		return year;
	}


	public void setYear(int year) {
		this.year = year;
	}	

	//Esse metodo nao deveria existir
	public void setId(int id) {
		this.id = id;
	}
}
 
